package com.liu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.model.dto.LoginDTO;
import com.liu.model.entity.UmsAdmin;
import com.liu.model.vo.ProfileVO;

/**
 * @author liumiao
 * @create 2021-10-29-13:57
 */
public interface IUmsAdminService extends IService<UmsAdmin> {
    /**
     * 获取用户信息
     *
     * @param username
     * @return dbUser
     */
    UmsAdmin getUserByAdminname(String username);
    /**
     * 用户登录
     *
     * @param dto
     * @return 生成的JWT的token
     */
    String executeLogin(LoginDTO dto);
    /**
     * 获取用户信息
     *
     * @param id 用户ID
     * @return
     */
    ProfileVO getUserProfile(String id);
}
